import { createRouter, createWebHistory } from "vue-router";
import { RouterType } from "@/type";

export const routes: RouterType[] = [
  {
    path: "/:catchAll(.*)",
    name: "index",
    title: "首页",
    component: () => import(/* webpackChunkName: "index" */ "../views/index/index.vue")
  }
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes: routes as any
});

export default router;
